import { IUser } from '../user/User';
/*
 * @Author: 郑刘利
 * @Date: 2020-03-17 23:51:19
 * @LastEditors: 郑刘利
 * @LastEditTime: 2020-03-18 00:09:18
 * @Description: file content
 * @FilePath: \one_project\src\core\domain\social\Echo.ts
 */

enum EchoType {
    'photo' = 1,
    'voice' = 2
}
export interface IEcho extends UCC<IUser> {
    type: EchoType;
}
export abstract class Echo implements IEcho {
    public static ECHO_TYPE = EchoType;
    public id: string;
    public form: IUser;
    public type: EchoType;

    public constructor(base: IEcho) {
        this.id = base.id;
        this.form = base.form;
        this.type = base.type;
    }
}
